package zzz.Text.text12;

public class Systemdemo {
    public static void main(String[] args) {
        long l1 = System.currentTimeMillis();//运行开始到结束经过了多少毫秒
        System.out.println("hello world");
        long l2 = System.currentTimeMillis();
        System.out.println(l2-l1);
        //几秒过后关闭虚拟机
        //System.exit(0);

        //arraycopy拷贝(原数组,起始索引,目的地数组,起始索引,拷贝个数)
        int[] arr1 = {1,2,3,4,5,6,7,8,9};
        int[] arr2 = new int[10];
        System.arraycopy(arr1,2,arr2,0,6);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
}
